# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-music
pkgver=46.0
pkgrel=1
pkgdesc="Music is the new GNOME music playing application"
url="https://wiki.gnome.org/Apps/Music"
# s390x blocked by exempi -> tracker-miners
arch="noarch !s390x"
license="GPL-2.0-or-later"
depends="
	gnome-online-accounts
	grilo
	grilo-plugins
	gst-plugins-good
	libdazzle
	libmediaart
	libsoup3
	py3-cairo
	py3-gobject3
	tracker
	tracker-miners
	"
makedepends="
	desktop-file-utils
	gnome-online-accounts-dev
	gobject-introspection-dev
	grilo-dev
	grilo-plugins-dev
	gtk4.0-dev
	itstool
	libadwaita-dev
	libmediaart-dev
	libsoup3-dev
	meson
	py3-cairo-dev
	py3-gobject3-dev
	tracker-dev
	"
checkdepends="
	appstream-glib
	"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-music/${pkgver%.*}/gnome-music-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
f0fc16029c9e7dc2f9824604ac81b5c3d6f4165878f8558e6a1372ae1a6188d9bfc100f658897a37db7f1250d6b3c50154aee75225d3bb333749fa3176751b14  gnome-music-46.0.tar.xz
"
